import { ajax } from "@/utils/request";

//putapp.put('/api/shopproducts/:id/:proid/isLike'
export function updateprosFn(id:number, proid:number,isLike:boolean){
    return ajax({
        url:'/shopproducts/' + id+'/' + proid +'/isLike',  //'/api/shopproducts/:id/:proid/updateLike' 这个请求路径怎么写 
        method:'put',
        data: {isLike}   //// 将isLike作为请求体发送给后端
    }
    )
}